import json
from config import BESE_DIR


def read_data(file):

    with open(BESE_DIR + "/data/"+file, mode="r", encoding="utf-8") as f:
        data = json.load(f)
        list_data = []
        for i in data:
            list_data.append(tuple(i.values()))
        return list_data


if __name__ == '__main__':
    # print(read_data("login_data.json"))
    print(read_data("add_emp_data.json"))
